package com.fitmanagement.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 虚空
 * @since 2024-10-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("userexercises")
public class Userexercises implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户锻炼记录唯一标识
     */
    @TableId(value = "RecordID", type = IdType.AUTO)
    private Integer RecordID;

    /**
     * 用户唯一标识
     */
    @TableField("UserID")
    private Integer UserID;

    /**
     * 锻炼唯一标识
     */
    @TableField("ExerciseID")
    private Integer ExerciseID;

    /**
     * 锻炼日期
     */
    @TableField("Date")
    private LocalDate Date;

    /**
     * 锻炼时长（分钟）
     */
    @TableField("Duration")
    private Integer Duration;

    /**
     * 锻炼次数
     */
    @TableField("Reps")
    private Integer Reps;

    /**
     * 记录创建时间
     */
    @TableField("CreatedAt")
    private LocalDateTime CreatedAt;

    /**
     * 记录最后更新时间
     */
    @TableField("UpdatedAt")
    private LocalDateTime UpdatedAt;


}
